﻿using System.Windows;
using System.Windows.Controls;

namespace Coding4Fun.BoxingBots.Boxer.Controls
{
	/// <summary>
	/// Interaction logic for SensorData.xaml
	/// </summary>
	public partial class SensorData : UserControl
	{
		public SensorData()
		{
			InitializeComponent();

			DataContext = this;
		}

		public string Title
		{
			get { return (string)GetValue(TitleProperty); }
			set { SetValue(TitleProperty, value); }
		}

		// Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty TitleProperty =
			DependencyProperty.Register("Title", typeof(string), typeof(SensorData), new UIPropertyMetadata("Title"));



		public double AverageSensor
		{
			get { return (double)GetValue(AverageSensorProperty); }
			set { SetValue(AverageSensorProperty, value); }
		}

		// Using a DependencyProperty as the backing store for AverageSensor.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty AverageSensorProperty =
			DependencyProperty.Register("AverageSensor", typeof(double), typeof(SensorData), new UIPropertyMetadata(0.0));

		public double FrontLeftSensor
		{
			get { return (double)GetValue(FrontLeftSensorProperty); }
			set { SetValue(FrontLeftSensorProperty, value); }
		}

		// Using a DependencyProperty as the backing store for FrontLeftSensor.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty FrontLeftSensorProperty =
			DependencyProperty.Register("FrontLeftSensor", typeof(double), typeof(SensorData), new UIPropertyMetadata(0.0));

		public double FrontRightSensor
		{
			get { return (double)GetValue(FrontRightSensorProperty); }
			set { SetValue(FrontRightSensorProperty, value); }
		}

		// Using a DependencyProperty as the backing store for FrontRightSensor.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty FrontRightSensorProperty =
			DependencyProperty.Register("FrontRightSensor", typeof(double), typeof(SensorData), new UIPropertyMetadata(0.0));

		public double RearLeftSensor
		{
			get { return (double)GetValue(RearLeftSensorProperty); }
			set { SetValue(RearLeftSensorProperty, value); }
		}

		// Using a DependencyProperty as the backing store for RearLeftSensor.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty RearLeftSensorProperty =
			DependencyProperty.Register("RearLeftSensor", typeof(double), typeof(SensorData), new UIPropertyMetadata(0.0));

		public double RearRightSensor
		{
			get { return (double)GetValue(RearRightSensorProperty); }
			set { SetValue(RearRightSensorProperty, value); }
		}

		// Using a DependencyProperty as the backing store for RearRightSensor.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty RearRightSensorProperty =
			DependencyProperty.Register("RearRightSensor", typeof(double), typeof(SensorData), new UIPropertyMetadata(0.0));
	}
}
